package com.example.communitypro.pojo;

import java.io.Serializable;

public class Label implements Serializable {
    private Integer labelNo;

    private String labelName;

    private Integer labelHot;

    private static final long serialVersionUID = 1L;

    public Integer getLabelNo() {
        return labelNo;
    }

    public void setLabelNo(Integer labelNo) {
        this.labelNo = labelNo;
    }

    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName == null ? null : labelName.trim();
    }

    public Integer getLabelHot() {
        return labelHot;
    }

    public void setLabelHot(Integer labelHot) {
        this.labelHot = labelHot ;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Label other = (Label) that;
        return (this.getLabelNo() == null ? other.getLabelNo() == null : this.getLabelNo().equals(other.getLabelNo()))
            && (this.getLabelName() == null ? other.getLabelName() == null : this.getLabelName().equals(other.getLabelName()))
            && (this.getLabelHot() == null ? other.getLabelHot() == null : this.getLabelHot().equals(other.getLabelHot()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLabelNo() == null) ? 0 : getLabelNo().hashCode());
        result = prime * result + ((getLabelName() == null) ? 0 : getLabelName().hashCode());
        result = prime * result + ((getLabelHot() == null) ? 0 : getLabelHot().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", labelNo=").append(labelNo);
        sb.append(", labelName=").append(labelName);
        sb.append(", labelHot=").append(labelHot);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}